﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using FluentNHibernate;

namespace Mindfor.Web.Data.Mappings
{
	public class GalleryMap : ClassMap<Gallery>
	{
		public GalleryMap()
		{
			Table("Galleries");
			Id(m => m.Id);
			Map(m => m.Name).Length(255).Not.Nullable();
			Map(m => m.Description).Length(1023).Nullable();
			References<User>(m => m.User, "UserId");
		}
	}
}
